package inits

import (
	"fmt"
	"github.com/go-redis/redis"
	"zg3yk/config"
	"zg3yk/global"
)

func ExampleNewClient() {
	Data := config.Data.Redis
	global.Client = redis.NewClient(&redis.Options{
		Addr:     Data.Addr,
		Password: Data.Password,
		DB:       Data.DB,
	})
	fmt.Println("redis连接成功")
}
